//
//  DBHelper.h
//  leo
//
//  Created by 常艳 on 15/8/24.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "common.h"
#import "FMDatabase.h"
#import "FMDatabaseQueue.h"
#define DBVERSIONNUMBER 1

@interface DBHelper : NSObject
{
    FMDatabase *db ;
    FMDatabaseQueue *queue;
}

- (BOOL)createDB;
-(BOOL) execSql:(NSArray *)sqlArray;
-(BOOL) insertData:(const char *)sql  tableName:(NSString *) tableName;
-(BOOL) updateData:(const char *)sql tableName:(NSString *)tableName;
- (BOOL) deleteData:(const char *)sql tableName:(NSString *)tableName;
- (NSMutableArray*)searchData:(const char *)sql;
-(long) insertDataRet:(const char *)sql  tableName:(NSString *) tableName;
@end

